﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>商城资金明细</title>
<link href="__PUBLIC__/admin/css/xc.min.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/css/xc.admin.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/css/page.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/iconfont/iconfont.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/js/xc.js"></script> 
<script type="text/javascript" src="__PUBLIC__/admin/js/xc.admin.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/layer/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<div class="pd-20">
  <form action="" method="post" id="myfrom1">
  <input type="hidden" name="order_by" value="ac_id">
  <input type="hidden" name="sort" value="desc">
  <input type="hidden" name="usid" value="{$usid}">
  <div class="text-c"> 搜索
    <input type="text" onfocus="WdatePicker()" value="{$timegap.beg}" id="stime" name="stime" class="input-text Wdate" style="width:120px;"> -
	<input type="text" onfocus="WdatePicker()" value="{$timegap.end}" id="etime" name="etime" class="input-text Wdate" style="width:120px;">
    <button type="button" class="btn btn-success radius" onClick="ajax_get_table('myfrom1',1)"><i class="Hui-iconfont">&#xe665;</i> 搜记录</button>
    <button class="btn btn-primary radius"><i class="Hui-iconfont">&#xe603;</i> 导出数据</button>
    <a class="btn btn-warning radius" href="javascript:;" onClick="layer_show('调节资金','__MODULE__/Income/upUserIncome?id={$usid}','','500')"><i class="Hui-iconfont">&#xe63c;</i> 资金调整</a>
  </div>
  <div class="mt-10">
    <!--列表加载-->
    <div class="bDiv" style="height: auto; width:100%; text-align:center" id="ajax_return"> </div>
  </div>
  </form>
</div>

<script type="text/javascript">
$(document).ready(function(){
	ajax_get_table('myfrom1',1);
});
// ajax 抓取页面
function ajax_get_table(tab,page){
	cur_page = page; //当前页面 保存为全局变量
	$.ajax({
		type : "POST",
		url:"__MODULE__/Income/ajaxAcUserList/p/"+page,//+tab,
		data : $('#'+tab).serialize(),// 你的formid
		success: function(data){
			$("#ajax_return").html('');
			$("#ajax_return").append(data);
		}
	});
}
//回调函数 
function call_back_fun(v){
	//layer.closeAll(); // 关闭窗口
	ajax_get_table('myfrom1',cur_page);
}
</script>
</body>
</html>